package ch06;

public abstract class Beverage {
    public void markBeverage(){
        boilWater();
        brew();
        putInCup();
        if (wantCondiment()){
            addCondiment();
        }
        System.out.println("OwO饮品完成");
    }


    //    烧水
    private  void boilWater(){
        System.out.println("1.烧水");
    }
    //    冲泡
    abstract void brew();
    //    倒入杯中
    private  void putInCup(){
        System.out.println("3.装杯");
    }
    //    加入小料
    abstract void addCondiment();
    abstract boolean wantCondiment();
}
